package 链表内指定区间反转;

import util.ListNode;

/**
 *
 */
public class reverseBetween {
    public static void main(String[] args) {

    }

    public ListNode reverseBetween(ListNode head, int m, int n){
        return null;
    }


    public ListNode reverseList(ListNode head){
        if (head == null || head.next ==null){
            return head;
        }

        ListNode cur = reverseList(head.next);

        head.next.next = head;
        head.next = null;

        return cur;
    }
}

